package org.jeecg.modules.analysisachievement.achclasses.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.analysisachievement.achclasses.vo.AchClassSubjectScoreVo;
import org.jeecg.modules.analysisachievement.achclasses.mapper.AchClassSubjectScoreMapper;
import org.jeecg.modules.analysisachievement.achclasses.service.IAchClassSubjectScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Description: 班级统计各科成绩表v_ach_class_subject_score
 * @author: baochangrong
 * @Date:   2022-03-23
 * @Version: V1.0
 */
@Service
public class AchClassSubjectScoreServiceImpl extends ServiceImpl<AchClassSubjectScoreMapper, AchClassSubjectScoreVo> implements IAchClassSubjectScoreService {
    @Autowired
    AchClassSubjectScoreMapper achClassSubjectScoreMapper;

    @Override
    public List<AchClassSubjectScoreVo> queryAchClassSubjectScoreVoLists(AchClassSubjectScoreVo achClassSubjectScoreVo) {

        return null;
    }

    @Override
    public IPage<AchClassSubjectScoreVo> queryAchClassSubjectScoreVoLists(AchClassSubjectScoreVo achClassSubjectScoreVo, Map<String,String> queryParam, Page<AchClassSubjectScoreVo> page) {
        //获取该租户下所有数据
        List<AchClassSubjectScoreVo> achClassSubjectScoreVoList = achClassSubjectScoreMapper.queryAchClassSubjectScoreVoLists(achClassSubjectScoreVo,queryParam);
        return page.setRecords(achClassSubjectScoreVoList);
    }
}
